var mongoose = require("mongoose");
var dbconn = require("./mongoose");

let acticalsSchema=new mongoose.Schema({
  "img1":{type:String},
  "txt":{type:String},
  "time":{type:String},
  "txt1":{type:String}

});
let hongsModel=dbconn.model("atcallists",acticalsSchema);

module.exports = {
  "findImg": function (cb) {
    hongsModel.find({}, function (err, data) {
      if (err) {
        console.log("查询失败");
      } else {
        cb(data);
      }
    })
  }
}
